package com.fms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fms.entity.ProductOrder;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface ProductOrderMapper extends BaseMapper<ProductOrder> {
    @Select("SELECT count(*) FROM sys_user WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) < DATE(create_date);")
    Integer getNewOrder();
}
